<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    main {
      position: relative;
    }
    .left,
    .right {
      width: 200px;
      height: 300px;
    }
    .left {
      position: absolute;
      left: 0;
      background-color: blue;
      z-index: 22;
    }
    .center {
      height: 400px;
      position: absolute;
      left: 200px;
      right: 200px;
      background-color: orange;
    }
    .right {
      position: absolute;
      right: 0;
      background-color: red;
    }
  </style>
</head>
<body>
  <main>
    <div class="left"></div>
    <div class="center"></div>
    <div class="right"></div>
  </main>
</body>
</html>